package com.xueyu.domain.Stayinfo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("stayinfo")
public class StayinfoBean {
    @TableId("stayId")
    private int stayId;

    @TableField("bedId")
    private int bedId;

    @TableField("personId")
    private int personId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("orderTime")
    private String orderTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("startTime")
    private String startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("leaveTime")
    private String leaveTime;

    @TableField("price")
    private float price;

    @TableField("stayType")
    private int stayType;

    @TableField("remark")
    private String remark;

    @TableField(exist = false)
    private String realName;

    @TableField(exist = false)
    private String bedNo;
}
